
export default{
    state : {
        is_record:false,
        steps:[],
        user1Name:"",
        user2Name:"",
        user1Photo:"",
        user2Photo:"",
        user1Id:"",
        user2Id:"",
        stepCount:0,
        isBlackStep:true,


    },
    getters: {
    },
    mutations: {
        updateIsRecord(state,is_record){
            state.is_record = is_record;
        },
        updateSteps(state,steps){
            state.steps = steps;
        },
        addSteps(state,steps){
            state.steps.push(steps);
        },
        updateRecordUserInfo(state,data){
            state.user1Name = data.user1Name;
            state.user2Name = data.user2Name;
            state.user1Photo = data.user1Photo;
            state.user2Photo = data.user2Photo;
            state.user1Id = data.user1Id;
            state.user2Id = data.user2Id;

        },
        updateStepCount(state,stepCount){
            state.stepCount = stepCount;
        },
        updateIsBlackStep(state,isBlackStep){
            state.isBlackStep = isBlackStep;
        },
        clearRecords(state){
            state.is_record = false;
            state.steps = [];
            state.user1Name = "";
            state.user2Name = "";
            state.user1Photo = "";
            state.user2Photo = "";
            state.user1Id = "";
            state.user2Id = "";
            state.stepCount = 0;
            state.isBlackStep = true;
        }

    },
    actions: {
    },
    modules: {
    }
}